#ifndef __TOUCH_H
#define __TOUCH_H	
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include<stdio.h>
#include<unistd.h>
#include<linux/input.h> 
#include <sys/mman.h>
#include <pthread.h>

// 定义LED的魔幻数
#define TEST_MAGIC 'x'                           //定义幻数
#define TEST_MAX_NR 4                     //定义命令的最大序数
#define LED1 _IO(TEST_MAGIC, 0)              
#define LED2 _IO(TEST_MAGIC, 1)
#define LED3 _IO(TEST_MAGIC, 2)
#define LED4 _IO(TEST_MAGIC, 3)
struct touch_data {
  unsigned int x;
  unsigned int y;
};
struct touch_data get_touch_xy(void);

int lcd_show_pic(char *bmp_name);
void *lcd_check(void *arg);

void *media_control(void *arg);

void *music_control(void *arg);

void *beep_control(void *arg);

void *led_ctrl(void *arg);

void *lcd_disaplay(void *arg);
int  VideoInit();
int  VideoFree();

#endif
